<?php
    class WZModel_Test_User extends \WZ_Model
    {
        public $WZDbTable = 'users';
        public $id;
        public $datecrea;
        public $datemodif;
        public $langue;
        public $role;
        public $login;
        public $mdp;
        public $nom;
        public $prenom;
        public $courriel;
        public $actif;
        
        public function setDatecrea($datecrea = null)
        {
            if (null === $datecrea) {
                $datecrea = \WZ_Db::now();
            }
            $this->datecrea = $datecrea;
        }
        
        public function setDatemodif($datemodif = null)
        {
            if (null === $datemodif) {
                $datemodif = \WZ_Db::now();
            }
            $this->datemodif = $datemodif;
        }
        
        public function setLangue($langue = 'fr')
        {
            $this->langue = $langue;
        }
        
        public function setRole($role = 1)
        {
            $this->role = $role;
        }
        
        public function setActif($actif = 1)
        {
            $this->actif = $actif;
        }
        
    }